package com.toilet.easyvideofx.model;

import javafx.beans.property.LongProperty;
import javafx.beans.property.SimpleLongProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

/**
 * 文件列表
 */
public class FileListModel {
    /**
     * 文件id
     */
    private LongProperty id = new SimpleLongProperty();
    /**
     * 文件MD5值
     */
    private StringProperty fileMd5 = new SimpleStringProperty();
    /**
     * 文件大小
     */
    private LongProperty fileSize = new SimpleLongProperty();
    /**
     * 文件名称
     */
    private StringProperty fileName = new SimpleStringProperty();

    public long getId() {
        return id.get();
    }

    public LongProperty idProperty() {
        return id;
    }

    public void setId(long id) {
        this.id.set(id);
    }

    public String getFileMd5() {
        return fileMd5.get();
    }

    public StringProperty fileMd5Property() {
        return fileMd5;
    }

    public void setFileMd5(String fileMd5) {
        this.fileMd5.set(fileMd5);
    }

    public long getFileSize() {
        return fileSize.get();
    }

    public LongProperty fileSizeProperty() {
        return fileSize;
    }

    public void setFileSize(long fileSize) {
        this.fileSize.set(fileSize);
    }

    public String getFileName() {
        return fileName.get();
    }

    public StringProperty fileNameProperty() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName.set(fileName);
    }

    @Override
    public String toString() {
        return "FileListModel{" +
                "id=" + id +
                ", fileMd5=" + fileMd5 +
                ", fileSize=" + fileSize +
                ", fileName=" + fileName +
                '}';
    }
}
